﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;

namespace EnCor.Security
{
    public class MembershipProvidersAuthenticationExtension : AuthenticationExtension
    {
        public override void AddBuilderContext(EnCor.ObjectBuilder.BuilderContext builderContext)
        {
            foreach (MembershipProvider membershipProvider in Membership.Providers)
            {
                builderContext.AddExtension<MembershipProvider>(membershipProvider.Name, membershipProvider);
            }
        }
    }
}
